<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>系统管理</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>

</head>

<body class="content1">
	<div class="header">
		<h1 class="page-title">系统管理</h1>
	</div>
	<ul class="breadcrumb">
		<li><a href="<%=basePath%>showindex" target="_parent">Home</a> <span class="divider">/</span>
		</li>
		<li class="active">系统列表</li>
	</ul>
	<div class="container-fluid">
		<div class="row-fluid">
		
		
			<form class="form-inline" method="post"
				action="<%=basePath%>sys/showsearch">
				<input class="input-xlarge" name="searchname" type="text"> <input
					class="btn icon-search" type="submit" value="查询" /> 
					<a class="btn btn-primary" href="<%=basePath%>sys/showadd"> 新增
				</a>
				
			</form>

			<div class="well">
				<table class="table">
					<thead>
						<tr>
							<th>ID</th>
							<th>状态</th>
							<th>名称</th>
							<th>父ID</th>
							<th>URL</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${showsysfunlist}" var="item">
						<tr>
							<td>${item.id}</td>
							<td><c:choose>
									<c:when test="${item.state==1}">
												正常		
											</c:when>
									<c:otherwise>锁定</c:otherwise>
								</c:choose></td>
							<td>${item.name}</td>
							<td>${item.pid}</td>
							<td>${item.url}</td>
							<td><a
								href="<%=basePath %>sys/showedit?theid=${item.id }">编辑</a>
								<a href="<%=basePath %>sys/showadd?theid=${item.id}">子功能</a></td>
								</tr>
								</c:forEach>
				</table>


			</div>



		</div>
	</div>
	</div>
</body>
</html>
